package com.sierrawireless.www.airvantage.schema.ws.unit.threshold._1_0;

public class ThresholdServicesProxy implements com.sierrawireless.www.airvantage.schema.ws.unit.threshold._1_0.ThresholdServices {
  private String _endpoint = null;
  private com.sierrawireless.www.airvantage.schema.ws.unit.threshold._1_0.ThresholdServices thresholdServices = null;
  
  public ThresholdServicesProxy() {
    _initThresholdServicesProxy();
  }
  
  public ThresholdServicesProxy(String endpoint) {
    _endpoint = endpoint;
    _initThresholdServicesProxy();
  }
  
  private void _initThresholdServicesProxy() {
    try {
      thresholdServices = (new com.sierrawireless.www.airvantage.schema.ws.unit.threshold._1_0.ThresholdServicesServiceLocator()).getThresholdServicesSoap11();
      if (thresholdServices != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)thresholdServices)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)thresholdServices)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (thresholdServices != null)
      ((javax.xml.rpc.Stub)thresholdServices)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.sierrawireless.www.airvantage.schema.ws.unit.threshold._1_0.ThresholdServices getThresholdServices() {
    if (thresholdServices == null)
      _initThresholdServicesProxy();
    return thresholdServices;
  }
  
  public com.sierrawireless.www.airvantage.schema.ws.commons._1_0.UpdateResponse update(com.sierrawireless.www.airvantage.schema.ws.unit.threshold._1_0.UpdateRequest updateRequest) throws java.rmi.RemoteException{
    if (thresholdServices == null)
      _initThresholdServicesProxy();
    return thresholdServices.update(updateRequest);
  }
  
  public com.sierrawireless.www.airvantage.schema.ws.unit.threshold._1_0.QueryResponse query(com.sierrawireless.www.airvantage.schema.ws.unit.threshold._1_0.QueryRequest queryRequest) throws java.rmi.RemoteException{
    if (thresholdServices == null)
      _initThresholdServicesProxy();
    return thresholdServices.query(queryRequest);
  }
  
  public com.sierrawireless.www.airvantage.schema.ws.commons._1_0.DeleteResponse delete(int[] deleteRequest) throws java.rmi.RemoteException{
    if (thresholdServices == null)
      _initThresholdServicesProxy();
    return thresholdServices.delete(deleteRequest);
  }
  
  public com.sierrawireless.www.airvantage.schema.ws.unit.threshold._1_0.QueryAlarmsResponse queryAlarms(com.sierrawireless.www.airvantage.schema.ws.unit.threshold._1_0.QueryAlarmsRequest queryAlarmsRequest) throws java.rmi.RemoteException{
    if (thresholdServices == null)
      _initThresholdServicesProxy();
    return thresholdServices.queryAlarms(queryAlarmsRequest);
  }
  
  public com.sierrawireless.www.airvantage.schema.ws.unit.threshold._1_0.QueryAlarmDetailsResponse queryAlarmDetails(com.sierrawireless.www.airvantage.schema.ws.unit.threshold._1_0.QueryAlarmDetailsRequest queryAlarmDetailsRequest) throws java.rmi.RemoteException{
    if (thresholdServices == null)
      _initThresholdServicesProxy();
    return thresholdServices.queryAlarmDetails(queryAlarmDetailsRequest);
  }
  
  public com.sierrawireless.www.airvantage.schema.ws.commons._1_0.CreateResponse create(com.sierrawireless.www.airvantage.schema.ws.unit.threshold._1_0.CreateRequest createRequest) throws java.rmi.RemoteException{
    if (thresholdServices == null)
      _initThresholdServicesProxy();
    return thresholdServices.create(createRequest);
  }
  
  
}